﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace UIPrototyper
{
    public class MarginToThicknessConverter
    {
        static public Thickness ConvertToThickness(string s)
        {
            Thickness t = new Thickness();

            t.Top = Convert.ToDouble(s.Split(',')[1].Replace('.',','));
            t.Left = Convert.ToDouble(s.Split(',')[0].Replace('.',','));

            return t;
        }
    }
}
